package com.zbkj.crmeb.store.dao;

import com.zbkj.crmeb.front.request.IndexStoreProductSearchRequest;
import com.zbkj.crmeb.store.model.StoreProduct;
import com.zbkj.crmeb.store.vo.StoreProductMerVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.crmeb.store.model.StoreProductMer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商户商品
 * @Description: 
 * @author daigb
 * @date 2021-05-19
 */
@Mapper
public interface StoreProductMerDao extends BaseMapper<StoreProductMer> {

    List<StoreProductMer> selectProductBestIdList(StoreProductMerVo vo);

    Boolean saveOrUpdateGoods(@Param("tableName") String tableName, @Param("product") StoreProductMer storeProductMer);

    Boolean removeGoods(@Param("tableName")String tableName, @Param("productIds") List<Integer> productIds);

    List<StoreProduct> getProductIdList(IndexStoreProductSearchRequest request);

    void createTable(String tableName);

    List<Integer> selectShippingTempId(String tableName);

    void addShippingTempId(String tableName);

    /**
     * 创建视图
     * @author daigb
     * @date:  2022-04-25 16:53
     */
    void createView(String tableName);

    void addRebateRate();
}
